package com.bes.main.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;

import java.util.Date;

public class CVEExcel {

    @ExcelProperty(value = "ID", index = 0)
    private String cveId;

    @ExcelProperty(value = "报告时间", index = 3)
    @DateTimeFormat("yyyy年MM月dd日")
    @ColumnWidth(26)
    private Date datePublished;

    @ExcelProperty(value = "重要性", index = 2)
    private String metrics;

    @ExcelProperty(value = "修复版本", index = 1)
    private String version;

    public String getCveId() {
        return cveId;
    }

    public void setCveId(String cveId) {
        this.cveId = cveId;
    }

    public Date getDatePublished() {
        return datePublished;
    }

    public void setDatePublished(Date datePublished) {
        this.datePublished = datePublished;
    }

    public String getMetrics() {
        return metrics;
    }

    public void setMetrics(String metrics) {
        this.metrics = metrics;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }
}
